package com.lagou.util;

import java.util.Random;

public class RandomUtil {

    public static String getCode(int length) {
        Random random = new Random();
        String result = "";
        for (int i = 0; i < length; i++) {
            result += random.nextInt(10);
        }
        return result;
    }
}
